﻿// Decompiled with JetBrains decompiler
// Type: Bannerlord.ModuleManager.ModuleSorterOptions
// Assembly: MCMv5, Version=5.10.2.0, Culture=neutral, PublicKeyToken=null
// MVID: 7AB326B9-B2B4-41C2-9177-68E944071101
// Assembly location: D:\steam\steamapps\workshop\content\261550\2859238197\bin\Win64_Shipping_Client\MCMv5.dll

using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;

#nullable enable
namespace Bannerlord.ModuleManager
{
  internal sealed record ModuleSorterOptions()
  {
    public bool SkipOptionals { get; set; }

    public bool SkipExternalDependencies { get; set; }

    public ModuleSorterOptions(bool skipOptionals, bool skipExternalDependencies)
    {
      this.SkipOptionals = skipOptionals;
      this.SkipExternalDependencies = skipExternalDependencies;
    }

    [CompilerGenerated]
    public override int GetHashCode()
    {
      // ISSUE: reference to a compiler-generated field
      // ISSUE: reference to a compiler-generated field
      return (EqualityComparer<Type>.Default.GetHashCode(this.EqualityContract) * -1521134295 + EqualityComparer<bool>.Default.GetHashCode(this.\u003CSkipOptionals\u003Ek__BackingField)) * -1521134295 + EqualityComparer<bool>.Default.GetHashCode(this.\u003CSkipExternalDependencies\u003Ek__BackingField);
    }

    [CompilerGenerated]
    public bool Equals(ModuleSorterOptions? other)
    {
      if ((object) this == (object) other)
        return true;
      // ISSUE: reference to a compiler-generated field
      // ISSUE: reference to a compiler-generated field
      // ISSUE: reference to a compiler-generated field
      // ISSUE: reference to a compiler-generated field
      return (object) other != null && this.EqualityContract == other.EqualityContract && EqualityComparer<bool>.Default.Equals(this.\u003CSkipOptionals\u003Ek__BackingField, other.\u003CSkipOptionals\u003Ek__BackingField) && EqualityComparer<bool>.Default.Equals(this.\u003CSkipExternalDependencies\u003Ek__BackingField, other.\u003CSkipExternalDependencies\u003Ek__BackingField);
    }
  }
}
